package cn.tedu.spring.file;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestDatabase {
    public static void main(String[] args) {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
                "cn.tedu.spring.file"
        );

        Database database = context.getBean(Database.class);


        System.out.println(database);


    }
}
